﻿using FreeSql.Internal.Model;

namespace Enter.Admin.Dtoes
{
    public class ArchiveSearchModel
    {
        public long TableId { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 借据编号
        /// </summary>
        public string BusinessNo { get; set; } = string.Empty;
        /// <summary>
        /// 合同编号
        /// </summary>
        public string ContractNo { get; set; } = string.Empty;
        /// <summary>
        /// 客户身份证号码
        /// </summary>
        public string CustomerID { get; set; } = string.Empty;


        public string SearchStringField { get; set; } = string.Empty;
        public DynamicFilterOperator SearchStringOperator { get; set; }
        public string SearchStringValue { get; set; } = string.Empty;
        public string SearchDateField { get; set; } = string.Empty;
        public string SearchDateValue { get; set; } = string.Empty;
        public string SearchEnumField { get; set; } = string.Empty;
        public string SearchEnumValue { get; set; } = string.Empty;

        public string FullText { get; set; } = string.Empty;
    }

    public class ArchiveExportModel
    {
        public ArchiveSearchModel Data { get; set; }
        public string[] Columns { get; set; }
        public long[] Rows { get; set; }
    }
}
